home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.2 Development Libraries
/
SGI IRIX 6.2 Development Libraries.iso
/
dist
/
complib.idb
/
usr
/
share
/
catman
/
p_man
/
cat3
/
complib
/
fft1di.z
/
fft1di
Wrap
Text File
|
1996-03-14
|
4KB
|
133 lines
ccccfffffffftttt1111ddddiiii,,,,zzzzfffffffftttt1111ddddiiii((((3333FFFF)))) ccccfffffffftttt1111ddddiiii,,,,zzzzfffffffftttt1111ddddiiii((((3333FFFF))))
NNNNAAAAMMMMEEEE
ccccfffffffftttt1111ddddiiii,,,, zzzzfffffffftttt1111ddddiiii ---- initialize the coefficient array for Complex-to-
Complex 1D FFT modules.
SSSSYYYYNNNNOOOOPPPPSSSSYYYYSSSS
_F_O_R_T_R_A_N _S_P_E_C_I_F_I_C_A_T_I_O_N subroutine CFFT1DI( n, coeff )
iiiinnnntttteeeeggggeeeerrrr nnnn
ccccoooommmmpppplllleeeexxxx ccccooooeeeeffffffff((((nnnn++++11115555))))
ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ZZZZFFFFFFFFTTTT1111DDDDIIII(((( nnnn,,,, ccccooooeeeeffffffff ))))
iiiinnnntttteeeeggggeeeerrrr nnnn
ddddoooouuuubbbblllleeee ccccoooommmmpppplllleeeexxxx ccccooooeeeeffffffff((((nnnn++++11115555))))
_C _S_P_E_C_I_F_I_C_A_T_I_O_N
####iiiinnnncccclllluuuuddddeeee <<<<fffffffftttt....hhhh>>>>
ccccoooommmmpppplllleeeexxxx ****ccccfffffffftttt1111ddddiiii(((( iiiinnnntttt nnnn,,,, ccccoooommmmpppplllleeeexxxx ****ccccooooeeeeffffffff))));;;;
zzzzoooommmmpppplllleeeexxxx ****zzzzfffffffftttt1111ddddiiii(((( iiiinnnntttt nnnn,,,, zzzzoooommmmpppplllleeeexxxx ****ccccooooeeeeffffffff))));;;;
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Initialize the coefficient array which is used in the FFT modules. This
array contains the different twiddle factors and the factorization of N
into prime numbers.
As the FFT modules cfft1d or zfft1d only read the _c_o_e_f_f array, it may be
reused as long as necessary once it has been initialized.
In C, if _p_t_r is NULL, _c_f_f_t_1_d_i or _z_f_f_t_1_d_i returns a pointer to an
allocated buffer.
CFFT1DI should be used to initialize the coeeficient array before any
call to CFFT1D
ZFFT1DI should be used to initialize the coeeficient array before any
call to ZFFT1D
PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
NNNN ---- Integer. Specifies the length of the sequence to be transformed.
Unchanged on exit.
CCCCOOOOEEEEFFFFFFFF ---- Array (C or Fortran) or NULL pointer(C).
EEEExxxxaaaammmmpppplllleeee ooooffff CCCCaaaalllllllliiiinnnngggg SSSSeeeeqqqquuuueeeennnncccceeee
Initializing a coefficient array for complex-to-complex FFTs of size 200.
_F_o_r_t_r_a_n :
complex coeff(200+15)
call cfft1di( 200, coeff)
_C :
#include <fft.h>
float *coeff;
coeff = cfft1di( 200, NULL);
PPPPaaaaggggeeee 1111
ccccfffffffftttt1111ddddiiii,,,,zzzzfffffffftttt1111ddddiiii((((3333FFFF)))) ccccfffffffftttt1111ddddiiii,,,,zzzzfffffffftttt1111ddddiiii((((3333FFFF))))
SSSSEEEEEEEE AAAALLLLSSSSOOOO
fft, cfft1d, zfft1d
PPPPaaaaggggeeee 2222